package com.xiaoxing.salesclient.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xiaoxing.salesclient.mvp.model.entity.Staffs;
import com.xiaoxing.salesclient.mvp.ui.entity.XuanZeFuWuRenYuan;

import java.util.List;

import xiaoxing.com.salesclient.R;


public class XuanZeFuWuRenYuanAdapter extends BaseQuickAdapter<Staffs.DataBean, BaseViewHolder> {

    private Context mContext;

    public XuanZeFuWuRenYuanAdapter(Context context, @Nullable List<Staffs.DataBean> data) {
        super(R.layout.item_xuan_ze_fu_wu_ren_yuan, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, Staffs.DataBean item) {

        Glide.with(mContext).load(item.getCover()).into((ImageView) helper.getView(R.id.img));
        helper.setText(R.id.tv_name, item.getStaff_name());
        ImageView img_status = helper.getView(R.id.img_status);


    }

}
